import request from '@/utils/request'

/**
 * 删除用户
 * @param {*} data 
 * @returns 
 */
export async function deleteUser(userId) {
    return request({
        url: '/userInfo/' + userId,
        method: 'delete',
    })
}


/**
 * 拉黑用户
 * @param {*} data 
 * @returns 
 */
export async function UserStatus({ userId, type }) {
    return request({
        url: '/banUserStatus/' + userId + "/" + type,
        method: 'put',
    })
}


/**
 * 删除用户
 * @param {*} data 
 * @returns 
 */
 export async function ModifyUserInfo(data) {
    return request({
        url: '/adminModifyUserInfo',
        method: 'post',
        data:data
    })
}
